package java8_19;

/**
 * @author oldliu
 * @since 1.0
 */
public class PhoneTest3 {
    public static void main(String[] args) {
        //把 MobilePhone 的new 去掉
        MobilePhone p=new MobilePhone();
        p.brand="华为p50";
        p.prize=5799;
        p.color="天空蓝";
        Battery bt=new Battery();
        bt.brand="诺基亚原装";
        bt.vol=19999;
        p.b=bt;//!!!! 电池装到手机中去
        p.show();

        int[]ar=new int[10];

    }
}
